package cn.edu.dlmu.cogo.framework.config;

import cn.edu.dlmu.cogo.framework.web.RequestBody;

import java.io.File;

/**
 * @author yixi
 */
public class WebConfig extends JavaConfig {

    /**
     * 启动端口号
     */
    private int port = 8080;

    /**
     * 文件服务器根路径
     */
    private File root;

    /**
     * 请求映射信息
     */
    private RequestBody requestBody;

    private String adminUsername = "admin";

    private String adminPassword = "123456";

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public File getRoot() {
        return root;
    }

    public void setRoot(File root) {
        this.root = root;
    }

    public RequestBody getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(RequestBody requestBody) {
        this.requestBody = requestBody;
    }

    public String getAdminUsername() {
        return adminUsername;
    }

    public void setAdminUsername(String adminUsername) {
        this.adminUsername = adminUsername;
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }
}
